<div id="main">
	<h2><?php echo __('Képek'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th></th>
			<th><?php echo $this->Paginator->sort('filename','Kép neve'); ?></th>			
			<th><?php echo $this->Paginator->sort('gallery_id','Galéria'); ?></th>
			<th class="actions"><?php echo __('Műveletek'); ?></th>
	</tr>
	<?php foreach ($images as $image): ?>
	<tr>
            <td><?php echo $this->Html->image('uploads/images/'.$image['Image']['filename'],array('width'=>'70')); ?>&nbsp;</td>
		<td><?php echo h($image['Image']['filename']); ?>&nbsp;</td>		
		<td>
			<?php echo $this->Html->link($image['Gallery']['name'], array('controller' => 'galleries', 'action' => 'view', $image['Gallery']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Megnéz'), array('action' => 'view', $image['Image']['id'])); ?>			
			<?php echo $this->Form->postLink(__('Törlés'), array('action' => 'delete', $image['Image']['id']), null, __('Are you sure you want to delete # %s?', $image['Image']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('Előző'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('Következő') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div id="sideBar">	
	<ul class="sideNav">
		<li><?php echo $this->Html->link(__('Új kép feltöltése'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Galériák listázása'), array('controller' => 'galleries', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Új Galéria'), array('controller' => 'galleries', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="clear"></div>